package com.example.cloudcommon.config.clickhouse;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.io.Serializable;


public class CkServiceImpl<M extends CkBaseMapper<T>, T> extends ServiceImpl<M, T> implements CkService<T>{

    @Override
    public boolean updateByIdCk(T t) {
        return baseMapper.updateByIdClickHouse(t);
    }
    @Override
    public <IDT extends Serializable> void deleteByIdCk(IDT id) {
        baseMapper.deleteByIdClickHouse(id);
    }

    @Override
    public int deleteByWrapCk(Wrapper<T> queryWrapper) {
        return baseMapper.deleteByWrapCk(queryWrapper);
    }
}
